#ifndef TIMEREVENT_H
#define TIMEREVENT_H

#include "eventmessage.h"
#include <QObject>
#include <QTimer>
#include <QtSql>
//#include <QSortFilterProxyModel>
#include <QDebug>

class TimerEvent : public QObject
{
    Q_OBJECT
public:
    static void run();

    QTimer *timer;

protected:
    TimerEvent();
    ~TimerEvent();

private:
    QSqlQueryModel *eventModel;
    QVector<int> showCodes;

public slots:
    void refresh();

private slots:
    void checkEvent();
};

#endif // TIMEREVENT_H
